<template>
  <div>
    <ClassContent  class="class-info" :statusList="classStatusList"  :buttons="buttonsInfo"/>
  </div>
</template>

<script setup>

import {ref} from "vue";
import ClassContent from "@/components/common/class/ClassContent.vue";
import router from "@/router";

// 点击每一个班级后的添加按钮，跳出一个新页面展示这个班级的所有学生
const openStudentPage=(rowInfo)=>{
  router.push({ name: 'EmploymentDetail', params: { classId: rowInfo.id, className: rowInfo.class_name } })
}

const buttonsInfo = ref([
  { text: '详情', onClick: openStudentPage}
]);
const classStatusList = [1,2,3]

</script>

<style scoped lang="less">

</style>